<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	template="/templates/default.xhtml">

	<ui:define name="content">
		<h1>List of assigned Tasks</h1>
		<p>
			Tasks for user:
			<h:outputText value="#{inboxController.currentUserName}">
			</h:outputText>
		</p>
		<h:dataTable value="#{inboxController.personalTaskList}" var="v_task"
			rows="10" paginator="true" selectionMode="single" id="taskList">
			<h:column>
				<f:facet name="header">Task Name</f:facet>
					#{v_task.name}
				</h:column>
			<h:column>
				<f:facet name="header">Description</f:facet>
					#{v_task.description}
				</h:column>
			<h:column>
				<f:facet name="header">Action</f:facet>
				<h:outputLink
					value="#{inboxController.viewTask(v_task.id)}">
					Visualizar
					<f:param name="taskId" value="#{v_task.id}"></f:param>
				</h:outputLink>
			</h:column>
		</h:dataTable>
	</ui:define>
</ui:composition>
